package com.linkwechat.wecom.c.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linkwechat.common.core.domain.Tree;
import com.linkwechat.wecom.domain.WeCategory;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author oweson
 * @date 2022/2/17 22:39
 */


public interface ICategoryService extends IService<WeCategory> {

    /**
     * 1 报错素材分类
     *
     * @param category
     */
    void insertCategory(WeCategory category);

    /**
     * 2 更新素材分类
     *
     * @param category
     */
    void updateCategory(WeCategory category);

    /**
     * 3 删除素材分类
     *
     * @param ids
     */
    void deleteWeCategory(Long[] ids);

    /**
     * 4 通过类型查询对应类目的分类信息表
     *
     * @param mediaType
     * @return
     */
    List<? extends Tree> findWeCategoryByMediaType(@RequestParam("mediaType") String mediaType);
}
